﻿#ifndef CHARGETYPE_H
#define CHARGETYPE_H

#include <QWidget>
#include <QTranslator>
#include "Global.h"
#include "countdowntime.h"

namespace Ui {
class ChargeType;
}

class ChargeType : public QWidget
{
    Q_OBJECT
    
public:
    CountDownTime* countdown[GUN_AMOUNT];
    QLabel* time;
    QLabel* signal;
    explicit ChargeType(QWidget *parent = 0);
    ~ChargeType();
signals:
    void StartCharging_RefreshChargeInfo(int gun_num);

public slots:
    void countdownOver();
    void setCountHide(int current);

private slots:
    void Device_Error_or_NotConnect(int GUN_NO);
    void on_buttonAutoFull_clicked();
    void on_buttonSetTime_clicked();
    void on_buttonSetMoney_clicked();
    void on_buttonSetPower_clicked();
    void on_buttonCancelCharging_clicked();
    void on_pushButton_clicked();

private:
    Ui::ChargeType *ui;
};

#endif // CHARGETYPE_H
